class Comment < ActiveRecord::Base
  belongs_to :user
  belongs_to :commentable, :polymorphic => true
  validates_presence_of :user_id , :content , :commentable_id , :commentable_type
  def created_at_formatted
    att = @attributes['created_at']
    "#{att[8,2]} #{Date::MONTHNAMES[att[5,2].to_i]} #{att[0,4]}" 
  end
end